package com.xdcplus.web.common.enums;

public enum QaFourmChangeTypeEnum {
    //1,自动变更单 2,手动变更单 3,重大变更单
    RICHANG(1L, "日常变更"),
    QIEHUAN(2L, "规格切换"),
    ZHONGDA(3L, "重大变更"),
    SHIYAN(4L, "工艺实验"),
    SHEBEI(5L, "设备变更"),
    SHIYANG(6L, "样品试样"),
    ;

    private Long code;

    private String msg;

    public static String getMsg(Long code) {
        for (QaFourmChangeTypeEnum ele : values()) {
            if(ele.getCode().equals(code)) {return ele.getMsg();}
        }
        return null;
    }

    QaFourmChangeTypeEnum(Long code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Long getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
